package com.hoas.distributedlock.core;

public abstract class DisributedLockStrategy {

    public DisributedLockStrategy(String name) {
        this.name = name;

        DisributedLockFactory.setStrategy( this );

    }

    private String name;

    protected abstract DisributedLock create();

    public String getName() {
        return name;
    }

}
